                        <form action="<?php echo base_url()?>contact/sendMail" name="formMail" method="POST" enctype="multipart/form-data" onsubmit="return checksendMail();">                  

                            <table id="box-table-a" cellspacing="1" align="right" width="900px">
                                            <tr>
                                                <td colspan="2" class="bar">Contact with other person</td>
                                            </tr>                                    
                                            <tr> 
                                                <td class="row10" >To</td>
                                                <td class="row12" >
                                                    <select name="txtTo">
                                                    <?php                               
                                                        foreach($listemail as $item){
                                                        if($item->email == $To)
                                                        echo "<option selected>$item->email</option>";
                                                        else echo "<option>$item->email</option>";
                                                        }
                                                    ?>
                                                    </select>
                                                </td>
                                            </tr>
                                            
                                            <tr> 
                                                <td class="row10">Subject</td>
                                                <td class="row12"><input type="text" name="txtSubject" class="form"   value="<?php if(isset($Subject)) echo $Subject;?>"/></td> 
                                            </tr>  
                                            <tr> 
                                                <td class="row10">Content</td>
                                                <td class="row12"><textarea name="txtContent"><?php if(isset($Content)) echo $Content?></textarea></td> 
                                            </tr> 
                                            <tr>
                                                <td class="row10" align="left">Attach file</td>
                                                 <td class="row12" align="left"><input type="file" name="file_upload" class="form" id="file_upload"/><font color="red"></font></td>
                                            </tr>
                                            <tr> 
                                                <td class="row10" align="center"><input type="submit" name="Submit" id="submit" value="Send"/></td>
                                                <td class="row12" align="left"><input type="reset" name="Reset" id="submit" value="Reset"/></td>
                                            </tr>
                                            
                                            <tr> 
                                                
                                                <td class="row2" colspan="2" align="center"><strong><?php if(isset($error_sendmail)) echo $error_sendmail?></strong></td> 
                                            </tr>
                                    </td>
                                </tr>
                            </table>
                        </form>